﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mohe.Scada.Entities.Models
{
    public class Product
    {

        /// <summary>
        /// 序号
        /// </summary>
        [Column(IsIdentity = false, IsPrimary = true)]
        public int Id { get; set; }

        /// <summary>
        /// 产品号
        /// </summary>
        public int Pid { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 全称
        /// </summary>       
        public string FullName { get; set; }

        /// <summary>
        /// 工艺
        /// </summary>
        public int Ppid { get; set; }

        /// <summary>
        /// 内部编码
        /// </summary>
        public string Encoding { get; set; }

        /// <summary>
        /// 挂具ID
        /// </summary>
        public string Rackno { get; set; }

        /// <summary>
        /// 新建（更改时间）
        /// </summary>
        public DateTime InsertTime { get; set; }

        /// <summary>
        /// 使用标志
        /// </summary>
        public bool UseFlag { get; set; }

        /// <summary>
        /// 工艺string
        /// </summary>
        [Column(DbType = "varchar(max)")]
        public string ControlString { get; set; }

        /// <summary>
        /// 显示
        /// </summary>
        public bool View { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public int Version { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public int Administrator { get; set; }

        /// <summary>
        /// 粉房号
        /// </summary>
        public int PainterID { get; set; }

        /// <summary>
        /// 颜色自动程序
        /// </summary>
        public int PainterProgram { get; set; }

    }
}
